import 'package:freezed_annotation/freezed_annotation.dart';

part 'get_goods_list_request.g.dart';
part 'get_goods_list_request.freezed.dart';

@freezed
class GetGoodsListRequest with _$GetGoodsListRequest {
  const factory GetGoodsListRequest({
    @JsonKey(name: "cate_id") required String cateId,
    @JsonKey(name: "page") required String page,
    @JsonKey(name: "pageSize") required String pageSize,
    @JsonKey(name: "county") required String county,
  }) = _GetGoodsListRequest;

  factory GetGoodsListRequest.fromJson(Map<String, dynamic> json) =>
      _$GetGoodsListRequestFromJson(json);
}
